﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Dto;
using ZhonTai.Admin.Services.Patrol.Dto;

namespace ZhonTai.Admin.Services.Patrol
{
    /// <summary>
    /// 表单
    /// </summary>
    public interface IFormService
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name=""></param>
        /// <returns></returns>
        Task<long> AddAsync(FormAddInput input);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PageOutput<FormOutput>> GetPageAsync(PageInput<FormGetPageDto> input);

        /// <summary>
        /// 配置
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task SetItemsAsync(FormAddItemInput input);
    }
}
